package community.hospital.service.domain;

import com.baomidou.mybatisplus.extension.service.IService;
import community.hospital.entity.Department;
import community.hospital.entity.request.ListDepartmentRequest;
import community.hospital.mapper.DepartmentMapper;

import java.util.List;

/**
 * @author yindingjie
 */
public interface DepartmentService extends IService<Department> {

    List<Department> listDepartment(ListDepartmentRequest request);

    int countByDeptName(String deptName);

    /**
     * 根据id找出一级科室和对应的二级科室
     * @param ids
     * @return
     */
    List<Department> listDepartmentByIds(List<Long> ids);

    List<Department> listParentDepartment(ListDepartmentRequest request);

    Boolean updateState(Long id, Integer state);

    List<Department> list1Department();

    List<Department> listByHospitalId(Long hospitalId);

}
